<!-- my-page.vue -->
<template>
  <div>
    <!-- 
      name(必传)：应用名称
      url(必传)：应用地址，会被自动补全为http://localhost:3000/index.html
      baseroute(可选)：基座应用分配给子应用的基础路由，就是上面的 `/my-page`
     -->
    <micro-app name="vue3+webpack" url="http://localhost:5567/" :data="microAppData" baseroute="/v3-wbp" />
  </div>
</template>
<script lang="ts">
import { removeDomScope } from "@micro-zoe/micro-app"
import router from "@/router"
export default {
  name: "vue3",
  data() {
    return {
      microAppData: {
        pushState: (path) => {
          removeDomScope()
          router.push(path)
        }
      }
    }
  }
}
</script>
